Part Number Hot Search : 
74C164 IRFP9242 KA22130 2SC1185 HC353F1R A2536EL CWR11C 1402C
Product Description
Full Text Search
 

To Download ZL38002QDG1 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  1 zarlink semiconductor inc. zarlink, zl and the zarlink semiconductor logo are trademarks of zarlink semiconductor inc. copyright 2005, zarlink semiconductor inc. all rights reserved. features ? 112 ms acoustic echo canceller ? up to 12 db of noise reduction ? works with low cost voice codec. itu-t g.711 or signed mag /a-law, or linear 2?s compliment ? each port may operate independently in companded format or linear format ? advanced nlp design - full duplex speech with no switched loss on audio paths ? fast re-convergence time: tracks changing echo environment quickly ? adaptation algorithm converges even during double-talk ? designed for exceptional performance in high background noise environments ? provides protection against narrow-band signal divergence ? howling prevention stops uncontrolled oscillation in high loop gain conditions ? programmable offset nulling of all pcm channels ? serial micro-controller interface ? idle channel noise suppression ? st-bus, gci, or variable-rate ssi pcm interfaces ? user gain control provided for speaker path (-24 db to +21 db in 3 db steps) ? adjustable gain pads from -24 db to +21 db at xin, sin and sout to compensate for different system requirements ? agc on speaker path ? handles up to -6 db acoustic echo return loss (with the appropriate gain pad settings) ? transparent data transfer and mute options ? 20 mhz master clock operation ? low power mode during pcm bypass ? bootloadable for future factory software upgrades ? 2.7 v to 3.6 v supply voltage; 5 v-tolerant inputs august 2005 ordering information zl38002qdg 48 pin tqfp trays ZL38002QDG1 48 pin tqfp* trays zl38002dga1 36 pin qsop* tubes zl38002dgb1 36 pin qsop* tape and reel * pb free matte tin -40 c to 85 c zl38002 low-voltage acoustic echo canceller with noise reduction data sheet figure 1 - functional block diagram rout md1 md2 sin micro interface program ram program rom howling controller nbsd linear/ /a-law r 1 r 1 s 1 s 2 format l inear/ /a-law hp filter linear /a-law/ adaptive filter hp filter vdd vss reset f0i bclk/c4i mclk sout rin data1 data2 cs sclk ena2 law agc user gain + - -24 -> +21db adv nlp linear /a-law/ + unit control detector talk double nbsd ena1 limiter limiter acoustic echo path gain pad gain pad gain pad noise reduction
zl38002 data sheet 2 zarlink semiconductor inc. applications ? hands free car kits ? full duplex speaker-phone for digital telephone ? echo cancellation for video conferencing ? security systems ? intercom systems (door entry, elevator, and restaurant drive-through) figure 2 - pin connections 1 2 3 4 5 6 7 8 9 10 11 12 13 14 16 15 19 20 28 27 26 25 24 23 22 21 data2 vdd nc ic nc data1 sclk sout rout bclk/c4i ic ic sin rin ic md2 md1 f0i format ic law ena1 reset nc ena2 mclk cs qsop 32 31 vss nc 30 29 vss2 vdd2 ic 17 18 33 34 35 36 mclk2 ic ic ic tqfp 34 36 38 40 42 44 46 48 16 14 12 10 8 6 4 2 cs resetb nc nc sout data2 sclk sin ic ic nc ic ic nc law mclk2 ena2 ic ic ic nc nc ic nc 18 20 22 24 26 30 32 28 md2 md1 ena1 nc nc nc bclk/c4i vss vdd2 format f0i rout vss2 nc mclk nc ic nc nc data1 nc vdd nc rin
zl38002 data sheet 3 zarlink semiconductor inc. pin description qsop pin # tqfp pin # name description 143ena1 ssi enable strobe/st-bus & gci mode for rin/sout (input). this pin has dual functions depending on whether ssi or st-bus/gci is selected. for ssi, this strobe must be present for frame synchronization. this is an active high channel enable strobe, 8 or 16 data bits wide, enabling serial pcm data transfer for on rin/sout pins. strobe period is 125 ms. for st- bus or gci, this pin, in conjunction with the md1 pin, selects the proper mode for rin/sout pins (see st-bus and gci operation description). 245md1 st-bus & gci mode for rin/sout (input). when in st-bus or gci operation, this pin, in conjunction with the ena1 pin, will select the proper mode for rin/sout pins (see st-bus and gci operation description). connect this pin to vss in ssi mode. 346ena2 ssi enable strobe /st-bus & gci mode for sin/rout (input). this pin has dual functions depending on whether ssi or st-bus/gci is selected. for ssi, this is an active high channel enable strobe, 8 or 16 data bits wide, enabling serial pcm data transfer on sin/rout pins. strobe period is 125 ms. for st-bus/gci, this pin, in conjunction with the md2 pin, selects the proper mode for sin/rout pins (see st-bus and gci operation description). 447md2 st-bus & gci mode for sin/rout (input). when in st-bus or gci operation, this pin in conjunction with the ena2 pin, selects the proper mode for sin/rout pins (see st-bus and gci operation description). connect this pin to vss in ssi mode. 548rin receive pcm signal input (input). 128 kbps to 4096 kbps serial pcm input stream. data may be in either companded or 2?s complement linear format. this is the receive input channel from the line (or network) side. data bits are clocked in following ssi, gci or st-bus timing requirements. 62sin send pcm signal input (input). 128 kbps to 4096 kbps serial pcm input stream. data may be in either companded or 2?s complement linear format. this is the send input channel (from the microphone). data bits are clocked in following ssi, gci or st-bus timing requirements. 73ic internal connection (input). must be tied to vss. 85mclk master clock (input). nominal 20 mhz master clock input (can be asynchronous relative to 8 khz frame signal.) tie together with mclk2. 9,10,11 6, 7, 8 ic internal connection (input). must be tied to vss. 12 9 law a/ law select (input). when low, selects ? law companded pcm. when high, selects a-law companded pcm. this control is for both serial pcm ports. 13 11 format itu-t/sign mag (input). when low, selects sign-magnitude pcm code. when high, selects itu-t (g.711) pcm code. this control is for both serial pcm ports. 14 13 reset reset / power-down (input). an active low resets the device and puts the zl38002 into a low-power stand-by mode. 17 16 sclk serial port synchronous clock (input). data clock for the serial microport interface.
zl38002 data sheet 4 zarlink semiconductor inc. 18 17 cs serial port chip select (input). enables serial microport interface data transfers. active low. 19 19 data2 serial data receive (input). in motorola/national serial microport operation, the data2 pin is used for receiving data. in intel serial microport operation, the data2 pin is not used and must be tied to vss or vdd. 20 21 data1 serial data port (bidirectional). in motorola/national serial microport operation, the data1 pin is used for transmitting data. in intel serial microport operation, the data1 pin is used for transmitting and receiving data. 22 23 vdd positive power supply (input ). nominally 3.3 volts. 23 24 sout send pcm signal output (output). 128 kbps to 4096 kbps serial pcm output stream. data may be in either companded or 2?s complement linear pcm format. this is the send out signal after acoustic echo cancellation and non-linear processing. data bits are clocked out following ssi, st- bus or gci timing requirements. 24 26 rout receive pcm signal output (output). 128 kbps to 4096 kbps serial pcm output stream. data may be in either companded or 2?s complement linear pcm format. this is the receive out signal after the agc and gain control. data bits are clocked out following ssi, st-bus or gci timing requirements. 25 27 f0i frame pulse (input). in st-bus (or gci) operation, this is an active-low (or active-high) frame alignment pulse, respectively. ssi operation is enabled by connecting this pin to vss. 26 29 bclk/c4i bit clock/st-bus clock (input). in ssi operation, bclk pin is a 128 khz to 4.096 mhz bit clock. this clock must be synchronous with ena1 and ena2 enable strobes. in st-bus or gci operation, c4i pin must be connected to the 4.096 mhz (c4 ) system clock. 27, 28 30, 31 ic internal connection (input). tie to vss. 29 33 vss2 digital ground (input). nominally 0 volts. 30 34 vdd2 positive power supply (input). nominally 3.3 volts (tie together with vdd). 31 35 vss digital ground (input). nominally 0 volts (tie together with vss2). 33 38 mclk2 master clock (input). nominal 20 mhz master clock (tie together with mclk). 34,35,36 39, 40, 41 ic internal connection (input). tie to vss. 15, 16, 21, 32 1, 4, 10, 12, 14, 15, 18, 20, 22, 25, 28, 32, 36, 37, 42, 44 nc no connect (output). this pin should be left unconnected. pin description (continued) qsop pin # tqfp pin # name description
zl38002 data sheet table of contents 5 zarlink semiconductor inc. 1.0 functional description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 1.1 noise reduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 1.2 noise suppression . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 1.3 adaptation speed control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 1.4 advanced non-linear processor (adv-nlp) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 1.5 narrow band signal detector (nbsd). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 1.6 howling detector (hwld)1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 1.7 programmable high pass filter. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 1.8 limiters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 1.9 user gain . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 1.10 agc. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 1.11 programmable gain pad . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 1.12 mute function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 1.13 master bypass. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 1.14 aec bypass . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 1.15 adaptation control. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 1.16 throughput delay . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 1.17 power down / reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 2.0 pcm data i/o . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 2.1 st-bus and gci operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 2.2 ssi operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 2.3 pcm law and format control (law, format). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 2.4 linear pcm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 2.5 bit clock (bclk/c4i) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 2.6 master clock (mclk) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 3.0 microport . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 4.0 bootload process and execution from ram. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 5.0 register summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 6.0 register definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 7.0 electrical characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
zl38002 data sheet 6 zarlink semiconductor inc. 1.0 functional description the zl38002 device is comprised of an acoustic echo canceller and the necessary control functions for operation. the zl38002 guarantees clear signal transmission in both transmit and receive audio path directions to ensure reliable voice communication, even when low level signals are provided. the zl38002 does not use variable attenuators during double-talk or single-talk periods of speech, as do many other acoustic echo cancellers for speakerphones. instead, the zl38002 provides high performance full-duplex operation similar to network echo cancellers. this results in users experiencing clear speech and uninterrupted background signals during the conversation and prevents subjective sound quality problems associated with ?noise gating? or ?noise contrasting?. the zl38002 uses an advanced adaptive filter algorithm that is double-talk stable, which means that convergence takes place even while both parties are talking. this algorithm allows continual tracking of changes in the echo path, regardless of double-talk, as long as a reference signal is available for the echo canceller. the echo tail cancellation capability of the acoustic echo canceller has been sized appropriately (112 ms) to cancel echo in an average sized office with a reverberation time of less than 112 ms. in addition to the echo cancellers, the following functions are supported: ? 12 db of noise reduction ? user gain pads at the sin and sout ports plus one at the input of adaptive filter (xram) ? control of adaptive filter convergence speed during periods of double-talk, far end single-talk and near-end echo path changes ? control of non-linear processor thresholds for suppression of residual non-linear echo ? howling detector to identify when instability is starting to occur and to take action to prevent oscillation ? narrow-band detector for preventing adaptive filter divergence caused by narrow-band signals ? programmable high pass filters at rin and sin for removal of dc components in pcm channels ? limiters that introduce controlled saturation levels ? serial controller interface compatible with motorola, national and intel microcontrollers ? pcm encoder/decoder compatible with m/a-law itu-t g.711, m/a-law sign-mag or linear 2?s complement coding ? automatic gain control on the receive speaker path ? idle channel noise suppression 1.1 noise reduction the zl38002 incorporates a noise reduction circuit that reduces background noise up to 12 db. the level of noise reduction is programmed allowing the user to adjust the level of noise cancellation according to system requirements. this is controlled through the nr register on page 3 address 16 h . a larger value in this register will increase the amount of noise reduction. as the amount of noise reduction is increased the amount of distortion in the audio path also increases. the noise reduction can be bypassed by setting bit 4 in control register 1 (address 01 h ) 1.2 noise suppression the zl38002 also utilizes noise suppression which can be used to reduce idle channel noise from emanating from the acoustic end. by setting a threshold value in the lower nibble (bits 0-3) of the mcr2 register on page 0 address 01 h , idle channel noise below the threshold is zero-forced. the threshold limits ranges from 0 to 16 (based on a 16 bit 2's complement) with a value of 0 disabling suppression.
zl38002 data sheet 7 zarlink semiconductor inc. 1.3 adaptation speed control the adaptation speed of the acoustic echo canceller is designed to optimize the convergence speed versus divergence caused by interfering near-end signals. adaptation speed algorithm takes into account many different factors such as relative double-talk condition, far end signal power, echo path change and noise levels to achieve fast convergence. 1.4 advanced non-linear processor (adv-nlp) after echo cancellation, there is likely to be residual echo which needs to be removed so that it will not be audible. the zl38002 uses an nlp to remove low level residual echo signals which are not comprised of background noise. the operation of the nlp depends upon a dynamic activation threshold, as well as a double-talk detector which disables the nlp during double-talk periods. the zl38002 keeps the perceived noise level constant, without the need for any variable attenuators or gain switching that causes audible ?noise gating?. the noise level is constant and identical to the original background noise even when the nlp is activated. the nlp can be disabled by setting the nlp- bit to 1 in the aec control registers. 1.5 narrow band signal detector (nbsd) 1 single or multi-frequency tones (e.g,. dtmf, or signalling tones) present in the reference input of an echo canceller for a prolonged period of time may cause the adaptive filter to diverge. the narrow band signal detector (nbsd) is designed to prevent this divergence by detecting single or multi-tones of arbitrary frequency, phase, and amplitude. when narrow band signals are detected, the filter adaptation process is stopped but the echo canceller continues to cancel echo. the nbsd can be disabled by setting the nb- bit to 1 in the mc control registers. 1.6 howling detector (hwld)1 the howling detector is part of an anti-howling control, designed to prevent oscillation as a result of positive feedback in the audio paths. the hwld can be disabled by setting the ah- bit to 1 in the (mc) control register. 1.7 programmable high pass filter programmable high pass filters are place at the sin and rin ports. these filters have two functions, one to remove any dc offset that may be present on either the rin or the sin port and two, to filter low frequency noise such as road noise (below 300 hz). the offset null filters can be disabled by setting the hpf- bit to 1 in the aec control registers. 1.8 limiters to prevent clipping in the echo paths, two limiters with variable thresholds are provided at the outputs. 1.9 user gain the user gain function provides the ability for users to adjust the audio gain on all paths. this gain is adjustable from -24 db to +21 db in 3 db steps for the sout and rout paths. it is important to use only this user gain function to adjust the speaker volume. the user gain function in the zl38002 is optimally placed outside the echo path such 1. patented
zl38002 data sheet 8 zarlink semiconductor inc. that no reconvergence is necessary after gain changes, avoiding a burst of each overtime the speaker gain is changed. 1.10 agc the agc function is provided to limit the volume in the speaker path. the gain of the speaker path is automatically reduced during the following conditions: ? when clipping of the receive signal occurs ? when initial convergence of the acoustic echo canceller detects unusually large echo return ? when howling is detected the agc can be disabled by setting the agc- bit to 1 in mc control register 1.11 programmable gain pad the zl38002 has three gain pads located at sin, sout and at the adaptive filter (xin). these gain pads are intended to be set once during initialization and not be used as dynamic gain adjustments. the purpose of theses gainpads are to help fine tune the performance of the acoustic echo canceller for a particular system. for example, the gain pad can be used to improve the subjective quality in low erl environments. the zl38002 can cancel echo with a erl as low as 0 db (attenuation from rout to sin). in many hand free applications, the erl can be low (or negative). this is due to both speaker and microphone gain setting. the speaker gain has to be set high enough for the speaker to be heard properly and the microphone gain needs to be set high enough to ensure sufficient signal is sent to the far end. if the erl (acoustic attenuation - speaker gain - microphone gain) is greater than 0 db, then the echo canceller cannot cancel echo. to overcome this limitation, the gain pad at sin and sout can be used to lower the sin level (and therefore the erl) by 6 db, perform the echo cancellation then amplify it at sout by 6 db. this will have the effect having 0db gain between sin and sout for double talk signals while injecting a additional 6 db attenuation for the echo return. it is important to reduce the dtdt threshold (page 0 address 30) to match the sin/sout gain settings. the gain can be accessed through customer gain control registers 1 - 2 (page 0, address 1c h - 1d h ). 1.12 mute function a pcm mute function is provided for independent control of the receive and send audio paths. setting the mute_r or mute_s bit in the mc register, causes quiet code to be transmitted on the rout or sout paths respectively. the zl38002 has an optional dc offset control. the user can add a positive offset to the mute value. this is controlled through the dc offset register (page 0, address 03h) quiet code is defined according to the following table. linear 16 bits 2?s complement sign/ magnitude -law a-law ccitt (g.711) -law a-law +zero (quiet code) 0000h 80h ffh d5h table 1 - quiet pcm code assignment
zl38002 data sheet 9 zarlink semiconductor inc. 1.13 master bypass a pcm bypass function is provided to allow transparent transmission of pcm data through the zl38002. when the bypass function is active, pcm data passes transparently from rin to rout and from sin to sout, with bit-wise integrity preserved. when the bypass function is selected, most internal functions are powered down to provide low power consumption. the bypass control bit is located in the main control mc register. 1.14 aec bypass an aec bypass function is provided to allow the user to bypass only the aec (i.e the echo estimate from the adaptive filter is not subtracted from the send path). this bypass does not effect any other function in the zl38002. the aec bypass control bit is located in the acoustic echo canceller control register (aeccr). 1.15 adaptation control adaptation control bit is located in the acoustic echo canceller control register (page 0, address 21h). when the adapt- bit is set to 1, the adaptive filter is frozen at the current state. in this state, the device continues to cancel echo with the current echo model. when the adapt- bit is set to 0, the adaptive filter is continually updated allowing the echo cancellor to adapt and track changes in the echo path. this is the normal operating state zl38002 1.16 throughput delay in all modes, except st-bus/gci operation, voice channels have 2 frames of constant delay. in st-bus/gci operation, the d and c channels have a delay of one frame. 1.17 power down / reset holding the reset pin at logic low will keep the zl38002 device in a power-down state. in this state all internal clocks are halted, and the data1, sout and rout pins are tristated. the user should hold the reset pin low for at least 200 msec following power-up. this will insure that the device powers up in a proper state. following any return of reset to logic high, the user must wait for 8 complete 8 khz frames prior to writing to the device registers. during this time, the initialization routines will execute and set the zl38002 to default operation based on the installed algorithm.
zl38002 data sheet 10 zarlink semiconductor inc. 2.0 pcm data i/o the pcm data transfer for the zl38002 is provided through two pcm ports. one port consists of rin and sout pins while the second port consists of sin and rout pins. the data are transferred through these ports according to either st-bus, gci or ssi conventions detected automatically by the device. the zl38002 determines the convention by monitoring the signal applied to the f0i pin. when a valid st-bus (active low) frame pulse is applied to the f0i pin, the zl38002 will assume st-bus operation. when a valid gci (active high) frame pulse is applied to the f0i pin, the device will assume gci operation. if f0i is tied continuously to vss, the device is set to ssi operation. figures 3 to 6 show timing diagrams of these 3 pcm-interface operation conventions. 2.1 st-bus and gci operation the st-bus pcm interface conforms to zarlink?s st-bus standard with an active-low frame pulse. input data is clocked in by the rising edge of the bit clock (c4i ) three-quarters of the way into the bit cell and output data bit boundaries (rout, sout) occur every second falling edge of the bit clock (see figure 11.) the gci pcm interface corresponds to the gci standard commonly used in europe with an active-high frame pulse. input data is clocked in by the falling edge of the bit clock (c4i ) three-quarters of the way into the bit cell and output data bit boundaries (rout, sout) occur every second rising edge of the bit clock (see figure 12.) either of these interfaces (st-bus or gci) can be used to transport 8 bit companded pcm data (using one timeslot) or 16 bit 2?s complement linear pcm data (using two timeslots). the md1/ena1 pins select the timeslot on the rin/sout port while the md2/ena2 pin selects the timeslot on the sin/rout port, as in table 2. figures 3 to 6 illustrate the timeslot allocation for each of these four modes. figure 3 - st-bus and gci 8-bit companded pcm i/o on timeslot 0 (mode 1) c4i f0i (st-bus) sin rout rin sout 76543210 76543210 7654321 0 76 54 3210 outputs = high impedance inputs = don?t care in st-bus/gci mode 1, echo canceller i/o channels are assigned to st-bus/gci timeslot 0. note that the user can configure port1 and port2 into different modes. port1 port2 01 2 34 b f0i (gci) start of frame (stbus & gci) ec ec
zl38002 data sheet 11 zarlink semiconductor inc. figure 4 - st-bus and gci 8-bit companded pcm i/o on timeslot 2 (mode 2) c4i f0i (st-bus) sin rout rin sout 76543210 76543210 7654 3210 76543 210 in st-bus/gci mode 2, echo canceller i/o channels are assigned to st-bus/gci timeslot 2. note that the user can configure port1 and port2 into different modes. port1 port2 01 2 34 outputs = high impedance inputs = don?t care b f0i (gci) start of frame (stbus & gci) ec ec
zl38002 data sheet 12 zarlink semiconductor inc. figure 5 - st-bus and gci 8-bit companded pcm i/o with d and c channels (mode 3) c4i f0i (st-bus) rin sout ec sin rout ec port1 port2 indicates that an input channel is bypassed to an output channel st-bus/gci mode 3 supports connection to 2 b+d devices where timeslots 0 and 1 transport d and c channels and echo canceller (ec) i/o channels are assigned to st-bus timeslot 2 (b). both port1 and port2 must be configured in mode 3. 01 2 34 outputs = high impedance inputs = don?t care 7654321 0 76543 210 76543 210 7654 3210 7654321 0 76543 210 76543 210 7654 3210 7654321 0 76543 210 76543 210 7654 3210 d c b f0i (gci) start of frame (stbus & gci)
zl38002 data sheet 13 zarlink semiconductor inc. figure 6 - st-bus and gci 16-bit 2?s complement linear pcm i/o (mode 4) 2.2 ssi operation the ssi pcm interface consists of data input pins (rin, sin), data output pins (sout, rout), a variable rate bit clock (bclk), and two enable pins (ena1, ena2) to provide strobes for data transfers. the active high enable may be either 8 or 16 bclk cycles in duration. automatic detection of the data type (8 bit companded or 16-bit 2?s complement linear) is accomplished internally. the data type cannot change dynamically from one frame to the next. port1 rin/sout st-bus/gci mode selection port2 sin/rout enable pins enable pins md1 ena1 md2 ena2 0 0 mode 1 . 8 bit companded pcm i/o on timeslot 0 0 0 0 1 mode 2 . 8 bit companded pcm i/o on timeslot 2. 0 1 1 0 mode 3 . 8 bit companded pcm i/o on timeslot 2. includes d & c channel bypass in timeslots 0 & 1. 10 1 1 mode 4 . 16-bit 2?s complement linear pcm i/o on timeslots 0 & 1. 11 table 2 - st-bus & gci mode select c4i f0i (stbus) rin sout 76543210 sin rout port1 port2 s 14 13 12 11 10 9 8 st-bus/gci mode 4 allows 16 bit 2?s complement linear data to be transferred using st-bus/gci i/o timing. note that port1 and port2 need not necessarily both be in mode 4. outputs = high impedance inputs = don?t care 76543210 s14 13 12 11 10 9 8 76543210 s14 13 12 11 10 9 8 76543210 s 14 13 12 11 10 9 8 f0i (gci) start of frame (stbus & gci) ec ec
zl38002 data sheet 14 zarlink semiconductor inc. in ssi operation, the frame boundary is determined by the rising edge of the ena1 enable strobe (see figure 7). the other enable strobe (ena2) is used for parsing input/output data and it must pulse within 125 microseconds of the rising edge of ena1. in ssi operation, the enable strobes may be a mixed combination of 8 or 16 bclk cycles allowing the flexibility to mix 2?s complement linear data on one port (e.g., rin/sout) with companded data on the other port (e.g., sin/rout). table 3 - ssi enable strobe pins 2.3 pcm law and format control (law, format) the pcm companding/coding law used by the zl38002 is controlled through the law and format pins. itu-t g.711 companding curves for m-law and a-law are selected by the law pin. pcm coding itu-t g.711 and sign- magnitude are selected by the format pin. see table 4. figure 7 - ssi operations enable strobe pin designated pcm i/o port ena1 line side echo path (port 1) ena2 acoustic side echo path (port 2) bclk ena1 rin sout 8 or 16 bits 8 or 16 bits port1 port2 8 or 16 bits 8 or 16 bits ena2 sin rout note that the two ports are independent so that, for example, port1 can operate with 8-bit enable strobes and port2 can operate with 16-bit enable strobes. outputs = high impedance inputs = don?t care start of frame (ssi) ec ec
zl38002 data sheet 15 zarlink semiconductor inc. 2.4 linear pcm the 16-bit 2?s complement pcm linear coding permits a dynamic range beyond that which is specified in itu-t g.711 for companded pcm. the echo-cancellation algorithm will accept 16-bits 2?s complement linear code which gives a maximum signal level of +15 dbm0. 2.5 bit clock (bclk/c4i ) the bclk/c4i pin is used to clock the pcm data for gci and st-bus (c4i ) interfaces, as well as for the ssi (bclk) interface. in ssi operation, the bit rate is determined by the bclk frequency. this input must contain either eight or sixteen clock cycles within the valid enable strobe window. bclk may be any rate between 128 khz to 4.096 mhz and can be discontinuous outside of the enable strobe windows defined by ena1, ena2 pins. incoming pcm data (rin, sin) are sampled on the falling edge of bclk while outgoing pcm data (sout, rout) are clocked out on the rising edge of bclk. see figure 13. in st-bus and gci operation, connect the system c4 (4.096 mhz) clock to the c4i pin. 2.6 master clock (mclk) a nominal 20 mhz, continuously-running master clock (mclk) is required. mclk may be asynchronous with the 8 khz frame. 3.0 microport the serial microport provides access to all zl38002 internal read and write registers, plus write-only access to the bootloadable program ram (see next section for bootload description). this microport is compatible with intel mcs-51 (mode 0), motorola spi (cpol=0, cpha=0) and national semiconductor microwire specifications. the microport consists of a transmit/receive data pin (data1), a receive data pin (data2), a chip select pin (cs ) and a synchronous data clock pin (sclk). the zl38002 automatically adjusts its internal timing and pin configuration to conform to intel or motorola/national specifications. the microport dynamically senses the state of the sclk pin each time the cs pin becomes active (i.e., high to low transition). if the sclk pin is high during a cs activation, then the intel mode 0 timing is assumed. in this case the data1 pin is defined as a bi-directional (transmit/receive) serial port and data2 is internally disconnected. if sclk is low during a cs activation, then motorola/national timing is assumed and data1 is defined as the data transmit pin while data2 becomes the data receive pin. the zl38002 supports motorola half- pcm code sign-magnitude format=0 itu-t (g.711) format=1 /a-law law = 0 or 1 -law law = 0 a-law law =1 + full scale 1111 1111 1000 0000 1010 1010 + zero 1000 0000 1111 1111 1101 0101 - zero 0000 0000 0111 1111 0101 0101 - full scale 0111 1111 0000 0000 0010 1010 table 4 - companded pcm
zl38002 data sheet 16 zarlink semiconductor inc. duplex processor mode (cpol=0 and cpha=0). this means that during a write to the zl38002, via a motorola processor, output data from the data1 pin is disregarded. this also means that input data on the data2 pin is ignored by the zl38002 during a valid read by the motorola processor. all data transfers through the microport are two bytes long. this requires the transmission of a command/address byte followed by the data byte to be written to or read from the addressed register. cs must remain low for the duration of this two-byte transfer. as shown in figures 8 and 9, the falling edge of cs indicates to the zl38002 that a microport transfer is about to begin. the first 8 clock cycles of sclk after the falling edge of cs are always used to receive the command/address byte from the microcontroller. the command/address byte contains information detailing whether the second byte transfer will be a read or a write operation and at what address. the next 8 clock cycles are used to transfer the data byte between the zl38002 and the microcontroller. at the end of the two-byte transfer, cs is brought high again to terminate the session. the rising edge of cs will tri-state the data1 pin. the data1 pin will remain tri-stated as long as cs is high. intel processors utilize least significant bit (lsb) first transmission while motorola/national processors use most significant bit (msb) first transmission. the zl38002 microport automatically accommodates both schemes for normal data bytes. however, to ensure timely decoding of the r/w and address information, the command/address byte is defined differently for intel and motorola/national operations. refer to the relative timing diagrams of figure 6 and figure 7. receive data bits are sampled on the rising edge of sclk while transmit data is clocked out on the falling edge of sclk. detailed microport timing is shown in figure 13 and figure 14. 4.0 bootload process and execution from ram a bootloadable program ram (bram) is available on the zl38002 to support factory-issued software upgrades to the built-in algorithm. to make use of this bootload feature, users must include 4096 x 8 bits of memory in their microcontroller system (i.e., external to the zl38002), from which the zl38002 can be bootloaded. registers and program data are loaded into the zl38002 in the same fashion via the serial microport. both employ the same command / address / data byte specification described in the previous section on serial microport. either intel or motorola mode may be transparently used for bootloading. there are also two registers relevant to bootloading (brc=control and sig=signature, see register summary). the effect of these register values on device operation is summarized in table 5. bootload mode is entered and exited by writing to the bootload bit in the bootload ram control (brc) register at address 3fh (see register summary). during bootload mode, any serial microport ?write? (r/w command bit =0) to an address other than that of the brc register will contribute to filling the program bram. call these transactions "bram-fill" writes. although a command/address byte must still precede each data byte (as described for the serial microport), the values of the address fields for these ?bram-fill? writes are ignored (except for the value 3fh, which designates the brc register.) instead, addresses are internally generated by the zl38002 for each ?bram-fill? write. address generation for ?bram-fill? writes resumes where it left off following any read transaction while bootload mode is enabled. the first 4096 "bram-fill" writes while bootload is enabled will load the memory, filling the bram and ignoring further writes. before bootload mode is disabled , it is recommended that users then read back the value from the signature register (sig) and compare with the one supplied by the factory along with the code. equality verifies that the correct data has been loaded. the signature calculation uses an 8-bit misr which only incorporates input from ?bram-fill? writes. resetting the bootload bit ( c 2 ) in the brc register to 0 (see register summary) exits bootload mode, resetting the signature (sig) register and internal address generator for the next bootload. a hardware reset (reset =0) similarly returns the zl38002 to the ready state for the start of a bootload.
zl38002 data sheet 17 zarlink semiconductor inc. note: bits c 1 c 0 are reserved, and must be set to zero. functional description for using the bootable ram bootload mode - microport access is to bootload ram (bram) brc register bits c 3 c 2 c 1 c 0 x 1 0 0 r/w address data w 3fh (= 1 1 1 1 1 1 b) writes "data" to brc reg. - bootload frozen; bram contents are not affected. w other than 3fh writes "data" to next byte in bram (bootloading.) r 1 x x x x x b reads back "data" = brc reg value. - bootload frozen; bram contents are not affected. r 0 x x x x x b reads back "data" = sig reg value. - bootload frozen; bram contents are not affected. non-bootload mode - microport access is to device registers (dregs) brc register bits c 3 c 2 c 1 c 0 x 0 0 0 r/w address data w any (= a 5 a 4 a 3 a 2 a 1 a 0 b) writes "data" to corresponding dreg. rany (= a 5 a 4 a 3 a 2 a 1 a 0 b) reads back "data" = corresponding dreg value. program execution modes c 3 c 2 c 1 c 0 0 0 0 0 execute program in rom, bootload mode disabled. - bram address counter reset to initial (ready) state. - sig register reseeded to initial (ready) state c 3 c 2 c 1 c 0 0 1 0 0 execute program in rom, while bootloading the ram. - bram address counter increments on microport writes (except to 3fh) - sig register recalculates signature on microport writes (except to 3fh) c 3 c 2 c 1 c 0 1 0 0 0 execute program in ram, bootload mode disabled. - bram address counter reset to initial (ready) state. - sig register reseeded to initial (ready) state c 3 c 2 c 1 c 0 1 1 0 0 - invalid - table 5 - bootload ram control (brc) register states
zl38002 data sheet 18 zarlink semiconductor inc. to begin execution from the ram once the program has been loaded, the bootload mode must be disabled (boot bit, c 2 =0) and execution from ram enabled (ram_romb bit, c 3 =1) by setting the appropriate bits in the brc register. during the bootload process, however, rom program execution (ram_romb bit, c 3 =0) should be selected. see table 5 for the effect of the brc register settings on microport accesses and on program execution. following program loading and enabling of execution from ram, it is recommended that the user set the software reset bit in the main control (mc) register, to ensure that the device updates the default register values to those of the new program in ram. note: it is important to use a software reset rather than a hardware (reset=0) reset, as the latter will return the device to its default settings (which includes execution from program rom instead of ram.) to verify which code revision is currently running, users can access the firmware revision code (frc) register (see register summary). this register reflects the identity code (revision number) of the last program to run register initialization (which follows a software or hardware reset.) figure 8 - serial microport timing for intel mode 0 r/w a 0 a 1 a 2 a 3 a 4 a 5 x command/address data input/output data 1 sclk cs ? ? ? e ? ? ? ? e ? this delay is due to internal processor timing and is equal to tsch time. the delay is transparent to zl38002. the zl38002: outputs transmit data on the falling edge of sclk the falling edge of cs indicates that a command/address byte will be transmitted from the microprocessor. the subsequent byte is always data followed by cs returning high. a new command/address byte may be loaded only by cs cycling high then low again. the command/address byte contains: 1 bit - read/write 6 bits - addressing data 1 bit - unused d 0 d 1 d 2 d 3 d 4 d 5 d 6 d 7 latches receive data on the rising edge of sclk
zl38002 data sheet 19 zarlink semiconductor inc. figure 9 - serial microport timing for motorola mode 00 or national microwire x a 0 a 1 a 2 a 3 a 4 a 5 r/w command/address data input data 2 receive data 1 transmit sclk cs ? ? ? e ? ? ? e ? this delay is due to internal processor timing and is equal to tsch time. the delay is transparent to zl38002. the falling edge of cs indicates that a command/address byte will be transmitted from the microprocessor. the subsequent byte is always data followed by cs returning high. a new command/address byte may be loaded only by cs cycling high then low again. the command/address byte contains: 1 bit - read/write 6 bits - addressing data 1 bit - unused d 0 d 1 d 2 d 3 d 4 d 5 d 6 d 7 d 0 d 1 d 2 d 3 d 4 d 5 d 6 d 7 high impedance data output ? the zl38002: outputs transmit data on the falling edge of sclk latches receive data on the rising edge of sclk
zl38002 data sheet 20 zarlink semiconductor inc. 5.0 register summary any register not described in the following section should be labels reserved for internal use. address cpu access page reset value description 00 h r/w 000 h main control register 1 (mcr1) 01 h r/w 000 h main control register 2 (mcr2) 02 h read 0 status register (sr) 03 h r/w 000 h dc offset register 04 h r/w 0a1 h high pass filter constant register (fltsh) 05 h r/w 008 h mu constant 07 h read 0 a6 h bootload ram signature register (sig) 08 h r/w 080 h slow adaptation threshold register 1 (satr1) slow adaptation threshold register 2 (satr2) 09 h r/w 0 04 h 12 h r/w 0 00 h automatic sout gain reduction (soutgr) 1c h r/w 088 h customer gain control register 1 (cgcr1) customer gain control register 2 (cgcr2) 1d h r/w 008 h 20 h r/w 06d h receive gain control register (rgcr) 21 h r/w 000 h acoustic echo canceller control register (aeccr) 22 h read 0 00 h acoustic echo canceller status register 1 (arcsr1) acoustic echo canceller status register 2 (aecsr2) 23 h read 0 00 h 24 h r/w 0 80 h acoustic lms filter length register 1 (almsfr1) acoustic lms filter length register 2 (almsfr2) 25 h r/w 03e h 26 h r/w 03d h decay step size control register (dsscr) 27 h r/w 006 h decay step number register (dsnr) 28 h r/w 096 h near-end speech detection threshold 1 (nesdt1) near-end speech detection threshold 2 (nesdt2) 29 h r/w 004 h 30 h r/w 080 h double-talk hand-over time 1 (dthot1) double-talk hand-over time 2 (dthot2) 31 h r/w 021 h 32 h r/w 02a h automatic rout gain reduction register (routgr) 34 h r/w 0aa h nlp threshold register 35 h r/w 001 h 36 h read 0 00 h send (sin) peak detect register 1 (spdr1) send (sin) peak detect register 2 (spdr2) 37 h read 0 00 h 38 h read 0 00 h send error peak detect register 1 (sepdr1) send error peak detect register 2 (sepdr2) 39 h read 0 00 h table 6 - address map
zl38002 data sheet 21 zarlink semiconductor inc. 3a h read 0 00 h receive (rout) peak detect register 1 (rpdr1) receive (rout) peak detect register 2 (rpdr2) 3b h read 0 00 h 3c h read 0 00 h adaptation speed register 1 (asr1) adaptation speed register 2 (asr2) 3d h read 0 10 h 3f h r/w 0/1/2/3 08 h brc bootload ram control register (brcr) 1a h read 1 00 h noise level r path register 1 (nlrpr1) noise level r path register 2 (nlrpr2) 1b h read 1 00 h 3a h read 1 00 h noise level s path register 1 (nlspr1) noise level s path register 2 (nlspr2) 3b h read 1 00 h 1c h r/w 200 h agc gain register 1 (agcgr1) agc gain register 2 (agcgr2) 1d h r/w 208 h 15 h r/w 320 h noise threshold for noise reduction register (nrth) 17 h r/w 320 h minimum noise reduction level register(beta) address cpu access page reset value description table 6 - address map (continued)
zl38002 data sheet 22 zarlink semiconductor inc. 6.0 register definitions bit name description 7 limit when high, rin and sin signals are limited to 0.25 in amplitude. when low, no limit is imposed on the inputs. 6 mute_r when high, the rin path is muted to quiet code (after the nlp) and when low the rin path is not muted. 5 mute_s when high, the sin path is muted to quiet code (after the nlp) and when low the sin path is not muted. 4 bypass when high, the send and receive paths are transparently by-passed from input to output and when low the send and receive paths are not bypassed. 3 nb- when high, narrowband signal detectors in rin and sin paths are disabled and when low the signal detectors are enabled. 2 agc- when high, agc is disabled and when low agc is enabled. 1 ah- when high, the howling detector is disabled and when low the howling detector is enabled. 0 reset when high, the power initialization routine is executed presetting all registers to default values. this bit automatically clears itself to?0? when reset is complete. register table 1 - main control register 1 (mc1) bit name description 7 shft when high and in 16-bit linear mode, this bit enables shift right by 2 on inputs sin, rin, and shift left by 2 on outputs sout, rout, for codec. if not in 16-bit linear mode for both i/o port s, this bit is ignored. when low, =default, no shift. 6 reserved reserved: must be set to low 5 reserved reserved: must be set to low register table 2 - main control register 2 (mc2) read/write page 0, address: 00 h reset value: 00 h 76543210 limit mute_r mute_s bypass nb- agc- ah- reset read/write address: 01 h reset value: 00 h 76543210 shft reserved reserved nrdis nsup3 nsup2 nsup1 nsup0
zl38002 data sheet 23 zarlink semiconductor inc. register table 3 - acoustic echo canceller status register register table 4 - dc offset register 4 nrdis when high, noise reduction is disabled. when low, noise reduction is enabled. 3-0 nsup noise suppression threshold - any value below this threshold in the send path will be suppressed (reset) bit name description 7-6 reserved reserved: must be set to low 5 hflag false howling detect bit.?1? indicates? false howling? detected (music or sinusoidal match).?0? indicates no ?false howling?, i.e. howling is not ruled out (by any matches to music or speech). the final howling decision is in bit 5 of asr (hwlng). 4-2 reserved reserved: must be set to low 1 nb this bit indicates a logical-or of status bits nbr + nbs (from asr register). 0 nbr when high, a narrowband signal has been detected in the receive (rin/rout) path. bit name description 7-5 reserved reserved: must be set to low 4-0 dc4-dc0 dc offset value in mute condition. bit name description register table 2 - main control register 2 (mc2) read/write address: 01 h reset value: 00 h 76543210 shft reserved reserved nrdis nsup3 nsup2 nsup1 nsup0 read/write page 0, address:02h reset value: 00h 76543210 reserved reserved hflag reserved reserved reserved nb nbr read/write page 0, address: 03h reset value: 60h 76543210 reserved reserved reserved dc4 dc3 dc2 dc1 dc0
zl38002 data sheet 24 zarlink semiconductor inc. register table 5 - high pass filter constant register (fltsh) register table 6 - mu constant register bit name description 7-5 f r 2-f r 0 these four bits control the cut-off frequency of hpf at rin. 4-0 f s 4-f s 0 these four bits control the cut-off frequency of hpf at sin. bit name description 7-0 mu5-0 this register allows the user to program control the adaptation speed. this register allows a maximum value of 3fh. the default value is 08h corresponding to decimal value of 2.0. decimal value of 1.0 is 04h. lower values correspond to slower adaptation speed. reserved. write?0?. read/write page 0, address: 04 h reset value: a1 h 76543210 fr2 fr1 fr0 fs4 fs3 fs2 fs1 fs0 3 db frequency and bit 0-4 for sin 00: 2 khz; 08: 2.65 hz; 10: 3 khz; 18: 3.6 hz 01: 820 hz; 09: 1.1 khz; 11: 1.2 khz; 19: 1.6 kh 02: 350 hz; 0a: 450 hz; 12: 580 hz; 1a: 700 hz 03: 160 hz; 0b: 200 hz; 13: 250 hz; 1b: 300 hz 04: 80 hz; 0c: 100 hz; 14: 125 hz; 1c: 150 hz 05: 40 hz; 0d: 50 hz; 15: 60 hz; 1d: 70 hz 06: 20 hz; 0e: 25 hz; 16: 30 hz; 1e: 38 hz 07: 10 hz; 0f: 14 hz; 17: 15 hz; 1f: 18 hz 3db frequency and bit 5-7 for rin 0: 2 khz; 1; 820 hz; 2: 350 hz; 3: 160 hz; 4: 80 hz; 5: 40 hz; 6: 20 hz; 7: 10 hz read/write page 0, address:05 h reset value: 08 h 76543210 resv resv mu 5 mu 4 mu 3 mu 2 mu 1 mu 0
zl38002 data sheet 25 zarlink semiconductor inc. register table 7 - bootload ram signature register (sig) register table 8 - slow adaptation threshold registers (satr1) & (satr2) bit name description 7-0 sig 7-0 this register provides the signature of the bootloaded data to verify error-free delivery into the device. note: this register is only accessible if boot bit is high (bootload mode enabled) in the above brc register. while bootload is disabled, the register value is held constant at its reset seed value of ffh. bit name description 15-0 sat15-sat0 threshold for deciding low adaptation speed. 8000h = 1.0. read/write page 0, address: 07 h reset value: ff h 76543210 sig7 sig6 sig5 sig4 sig3 sig2 sig1 sig0 read/write page 0, address: 09 h reset value: 04 h 76543210 sat15 sat14 sat13 sat12 sat11 sat10 sat9 sat8 read/write page 0, address: 08 h reset value: 80 h 76543210 sat7 sat6 sat5 sat4 sat3 sat2 sat1 sat0
zl38002 data sheet 26 zarlink semiconductor inc. register table 9 - sout gain reduction (soutgr) register table 10 - customer gain control registers (cgcr1) & (cgcr2) bit name description 7 - 1 reserved reserved: must be set to low 0 soutgr this bit will provide an automatic signal reduction on sout by 12 db (far-end speaker) when double talk is present with this bit set to 1. bit name description 15-12 reserved reserved: must be set to low 11-8 xramgain3-0 gain control for rout to xram, range from -24 db to 21 db. (1111=+21db, 0000=-24 db) 7-4 soutgain3-0 gain control for sout, range from -24 db to 21 db. (1111=+21db, 0000=- 24 db) 3-0 singain3-0 gain control for sin, range from -24 db to 21 db. (1111=+21db, 0000=- 24 db) read/write page 0, address: 12 h reset value: 00 h 76543210 reserved reserved reserved reserved reserved reserved reserved soutgr read/write page 0, address: 1d h reset value: 08 h 15 14 13 12 11 10 9 8 reserved reserved reserved reserved xramgain3 xramgain2 xramgain1 xramgain0 read/write page 0, address: 1c h reset value: 88 h 76543210 soutgain3 soutgain2 soutgain1 soutgain0 singain3 singain3 singain3 singain3
zl38002 data sheet 27 zarlink semiconductor inc. register table 11 - receive gain control (rcgr) bit name description 7-4 reserved reserved: must be set to low 3 g3 user gain control on rin/rout path. (tolerance of gain values: +/- 0.15 db 2 g2 1 g1 0 g0 read/write page 0, address: 20h reset value: 00h 76543210 reserved reserved reserved reserved g3 g2 g1 g0 gain code: g4-g0 gain(db) data sheet gain(db) actual 00h -24 -24.08 01h -21 -21.31 02h -18 -18.06 03h -15 -14.91 04h -12 -12.04 05h -9 -9.08 06h -6 -6.02 07h -3 -3.06 08h +0 +0 09h +3 +3.01 0ah +6 +5.99 0bh +9 +9.01 0ch +12 +12.01 0dh +15 +15.03 0eh +18 +18.03 0fh +21 +21.05
zl38002 data sheet 28 zarlink semiconductor inc. register table 12 - acoustic echo canceller control register (aeccr) bit name description 7 reserved reserved: must be set to low 6 asc- when high, internal adaptation speed control is disabled. when low, internal adaptation speed control is enabled. 5 nlp- when high, the non-linear processor in the sin/sout path is disabled. when low, the non-linear processor in the sin/sout path is enabled. 4 nj- when high, the noise filtering process is disabled in the nlp. when low, the noise filtering process is enabled in the nlp. 3 hpf- when high, the offset nulling filter is bypassed in the sin/sout path. when low, the offset nulling filter in the sin/sout path is active and will remove dc offset on the rin input signal. 2 hclr when high, the h register in the adaptive filter is cleared. when low, the h register is not cleared 1 adapt- when high, echo canceller adaptation is disabled. when low, the echo canceller adapts to the echo path characteristics. 0 ecby when high, the echo estimate from the adaptive filter is not subtracted from the send path. when low, the echo estimate is subtracted from the send path. read/write page 0, address: 21h reset value: 00h 76543210 reserved asc- nlp- inj- hpf- hclr adapt- ecby
zl38002 data sheet 29 zarlink semiconductor inc. register table 13 - status acoustic echo canceller status register (aecsr1) register table 14 - acoustic echo canceller status register 2 (aecsr2) bit name description 7 acmuth energy comparison for mu value.?1? indicates enough echo suppression. 6 acmund when low, indicates that the rin/rout receive path has no active signal. 5 hwlng when high indicates that howling is occurring in the loop. a related ?false howling? bit (hflag) in bit 5 of lsr is created as part of the howling-detect decision making. 4 nlputh peak comparison with nlp up threshold.?1? indicates not enough echo suppression. 3 nlpdc when high indicates that the nlp is activated. 2 dt when high, double-talk is present. 1 nb this bit indicates a logical-or of status bits nbs + nbr (from lsr register). 0 nbs when high, a narrowband signal has been detected in the send (sin/sout) path. bit name description 7-4 reserved 4 dhclr indicate the divergence of adaptation. "1" indicates that strong divergence occurs with error energy is at least double the input signal energy. reserved (anything written on it will be overwritten by temporary variable in the program). 3 acmufl adaptation floor decision. ?1? indicates the reference is below the adaptation floor, no adaptation. 2 reserved 1 acmunsp indicates strong near-end speech. 0 reserved read page 0, address: 22h reset value: 00h 76543210 acmuth acmund hwlng nlputh nlpdcw dt nb nbs read page 0, address: 23 h reset value: 00 h 76543210 reserved reserved reserved dhclr acmufl acmulow acmunsp nlpdcld
zl38002 data sheet 30 zarlink semiconductor inc. register table 15 - acoustic lms filter length registers (almsfr1) & (almsfr2) register table 16 - decay step size control register (dsscr) bit name description 6-0 f6-f0 allows the acoustic lms filter length to be reduced. the register value is in terms of milliseconds. 15-7 l7-l0 maps to rout limiter value, limit = 0l 8 l 7 l 6 l 5 l 4 l 3 l 2 l 1 l 0 00 0000, range: 040h - 7fc0h, plus 00h point value. default: 1f40h bit name description 7-3 l4-l0 sout limit value : stores the variable limit for sout. the interpretation of these bits is not direct: 00111 maps to default value = 1f40h. limit level = 0l 4 l 3 l 2 l 1 l 0 11 0100 0000, range: 0340h - 7f40h . 2-0 ssc2-ssc0 decay step size control : this register controls the step size (ss) to be used during the exponential decay of mu. read/write page 0, address: 25h reset value: 3eh read/write page 0, address: 24 h reset value: 80 h 15 14 13 12 11 10 9 8 l7 l6 l5 l5 l4 l3 l2 l1 76543210 l0 f6 f5 f4 f3 f2 f1 f0 read/write page 0, address: 26 h reset value: 3d h 76543210 l4 l3 l2 l1 l0 ssc2 ssc1 ssc0
zl38002 data sheet 31 zarlink semiconductor inc. register table 17 - decay step number register (dsnr) bit name description 7-0 ns7-ns0 decay step number : this register defines the number of steps to be used for the decay of mu where each step has a period of ss taps (see ssc 2-0 ). read/write page 0, address: 27 h reset value: 06 h 76543210 ns7 ns6 ns5 ns4 ns3 ns2 ns1 ns0 amplitude of mu time step size (ss) 1.0 2 -16 fir filter length (896 taps) number of steps (ns 7-0 ) the exponential decay registers (decay step number and decay step size) allow the lms adaptation step-size (mu) to be programmed over the length of the fir filter. a programmable mu profile allows the performance of the echo canceller to be optimized for specific applications. for example, if the characteristic of the echo response is known to have a roughly exponen tial decay of the echo impulse response, then the mu profile can be programmed to approximate this expected impulse response thereby improving the convergence characteristics of the adaptive filter. note that in the following register descriptions, one tap is equivalent to 125 ms. ssc 2-0 decay step size control : this register controls the step size (ss) to be used during the exponential decay of mu. the decay rate is defined as a decrease of mu by a factor of 2 every ss taps of the fir filter, where ss = 4 x2 ssc 2-0 . for example; if ssc 2-0 = 4, then mu is reduced by a factor of 2 every 64 taps of the fir filter. the default value of ssc 2-0 is 05h. l 4-0 sout limit value : stores the variable limit for sout. the interpretation of these bits is not direct: 00111 maps to default value = 1f40h. limit level = 0l 4 l 3 l 2 l 1 l 0 11 0100 0000 , range: 0340h - 7f40h. ns 7-0 decay step number : this register defines the number of steps to be used for the decay of mu where each step has a period of ss taps (see ssc 2-0 ). the start of the exponential decay is defined as: filter length (896) - [decay step number (ns 7-0 ) x step size (ss)] where ss = 4 x2 ssc 2-0 . for example, if ns 7-0 =4 and ssc 2-0 =4, then the exponential decay start value is 896 - [ns 7-0 x ss] = 896 - [4 x (4x2 4 )] = 640 taps for a filter length of 896 taps.
zl38002 data sheet 32 zarlink semiconductor inc. register table 18 - near-end speech detection threshold registers (nesdt1) & (nesdt2) register table 19 - near-end speech detection threshold registers (dthot1) & (dthot2) bit name description 15-0 muurat 15- muurat 0 threshold for deciding near end speech (mu = 0). 1000h = 1.0. bit name description 13-15 dtth 2 dtth 0 double talk threshold- in 6 db increments from -30 db to (0h = -30 db, 7h = +12 db 12-0 dthot 12- dthot 0 double-talk hand-over time read/write page 0, address: 29 h reset value: 04 h 15 14 13 12 11 10 9 8 muurat 15 muurat 14 muurat 13 muurat 12 muurat 11 muurat 10 muurat 9 muurat 8 read/write page 0, address: 28 h reset value: 96 h 76543210 muurat 7 muurat 6 muurat 15 muurat 4 muurat 3 muurat 2 muurat 1 muurat 0 read/write page 0, address: 31 h reset value: 04 h 15 14 13 12 11 10 9 8 dtth2 dtth1 dtth1 dthot12 dthot11 dthot10 dthot9 dthot8 read/write page 0, address: 30 h reset value: 96 h 76543210 dthot7 dthot6 dthot5 dthot4 dthot3 dthot2 dthot1 dthot0
zl38002 data sheet 33 zarlink semiconductor inc. figure 10 - automatic rout gain reduction (routgr) register table 20 - nlp threshold register bit name description 0 routgr this bit will provide an automatic signal reduction on rout by 12 db when double talk is present with this bit set to 1. bit name description 15-0 nlpth15- nlpth0 this register allows the user to program the level of the non-linear processor threshold. the 16 bit 2?s complement linear value defaults to 1aah. the maximum value is 7fffh = 0.9999. higher value corresponds to higher threshold. the high byte is in register 2 and the low byte is in register 1. read/write page 0, address: 32 h reset value: 2a h 76543210 reserved reserved reserved reserved reserved reserved reserved routgr read/write page 01, address: 35 h reset value: 01 h 15 14 13 12 11 10 9 8 nlpth15 nlpth14 nlpth13 nlpth12 nlpth11 nlpth10 nlpth9 nlpth8 read/write page aa, address: 34 h reset value: aa h 76543210 nlpth7 nlpth6 nlpth15 nlpth4 nlpth3 nlpth2 -nlpth1 nlpth0
zl38002 data sheet 34 zarlink semiconductor inc. register table 21 - send (sin) peak detect registers (spdr1) & (spdr2) register table 22 - send error peak detect registers (sepdr1) & (sepdr2) bit name description 15-0 sipd15-sipd0 these peak detector registers allow the user to monitor the send in signal (sin) peak signal level at reference point s 1 (see figure 1). the information is in 16-bit 2?s complement linear coded format presented in two 8 bit registers. the high byte is in register 2 and the low byte is in register 1. bit name description 15-0 sepd15-sepd0 these peak detector registers allow the user to monitor the error signal peak level in the send path at reference point s 2 (see figure 1). the information is in 16-bit 2?s complement linear coded format presented in two 8 bit registers. the high byte is in register 2 and the low byte is in register 1. read/write page 0, address: 37 h reset value: 00 h 15 14 13 12 11 10 9 8 sipd 15 sipd 14 sipd 13 sipd 12 sipd 11 sipd 10 sipd 9 sipd 8 read/write page 0, address: 36 h reset value: 00 h 76543210 sipd 7 sipd 6 sipd 15 sipd 4 sipd 3 sipd 2 sipd 1 sipd 0 read/write page 0, address: 39 h reset value: 00 h 15 14 13 12 11 10 9 8 sepd 15 sepd 14 sepd 13 sepd 12 sepd 11 sepd 10 sepd 9 sepd 8 read/write page 0, address: 38 h reset value: 00 h 76543210 sepd 7 sepd 6 sepd 15 sepd 4 sepd 3 sepd 2 sepd 1 sepd 0
zl38002 data sheet 35 zarlink semiconductor inc. register table 23 - receive (rout) peak detect registers (rpdr1) & (rpdr2) bit name description 15-0 ropd15- ropd0 these peak detector registers allow the user to monitor the receive out signal (rout) peak signal level at reference point r1 (see figure 1). the information is in 16-bit 2?s complement linear coded format presented in two 8 bit registers. the high byte is in register 2 and the low byte is in register 1. bit name description 15-0 a_as15-0 actual mu sent to acoustic lms. this register is where we can feed externally calculated mu value. this register allows the user to program control the adaptation speed. the default value is 1000h corresponding to decimal value of 2.0. the high byte is in register 2 and the low byte is in register 1. smaller values correspond to slower adaptation speed. register table 24 - adaptation speed registers (asr1) & (asr2) read/write page 0, address: 3b h reset value: 00 h 15 14 13 12 11 10 9 8 ropd 15 ropd 14 ropd 13 ropd 12 ropd 11 ropd 10 ropd 9 ropd 8 read/write page 0, address: 3a h reset value: 00 h 76543210 ropd 7 ropd 6 ropd 15 ropd 4 ropd 3 ropd 2 ropd 1 ropd 0 read/write page 0, address: 3d h reset value: 10 h 15 14 13 12 11 10 9 8 a_as15 a_as14 a_as13 a_as12 a_as11 a_as10 a_as9 a_as8 read/write page 0, address: 3c h reset value: 00 h 76543210 a_as7 a_as6 a_as5 a_as4 a_as3 a_as2 a_as1 a_as0
zl38002 data sheet 36 zarlink semiconductor inc. register table 25 - brc bootload ram control register (brcr) register table 26 - noise level registers r path (nlrpr1) & (nlrpr2) bit name description 7-4 unused must be set to 0 3 ram/rom when high, device executes from ram. when low, device executes from rom. 2 boot bit when high, puts device in bootload mode. when low, bootload is disabled. 1 page h controls the register page being accessed by address 00h-3fh. 00 = page 0 (default), 01 = page 1, 10= page 2, 11 = page 3 0page l bit name description 15-0 nlvrl15-0 estimated noise level in r path. read/write page 0/1/2/3, address: 3f h reset value: 00 h 76543210 ----rom/ramboot bitpagehpagel read/write page 1, address: 1b h reset value: 10 h 15 14 13 12 11 10 9 8 nlvrl15 nlvrl14 nlvrl13 nlvrl12 nlvrl11 nlvrl10 nlvrl9 nlvrl8 read/write page 1, address: 1a h reset value: 00 h 76543210 nlvrl7 nlvrl6 nlvrl5 nlvrl4 nlvrl3 nlvrl2 nlvrl1 nlvrl0
zl38002 data sheet 37 zarlink semiconductor inc. register table 27 - noise level s path registers (nlspr1) & (nlspr2) register table 28 - agc gain register (agcgr1) & (agcgr2) bit name description 15-0 nlvrl15-0 estimated noise level in s path. bit name description 15-0 agcgn15-0 agc gain value (1=4000h) read/write page 1, address: 3b h reset value: 00 h 15 14 13 12 11 10 9 8 nlvsl15 nlvsl14 nlvsl13 nlvsl12 nlvsl11 nlvsl10 nlvsl9 nlvsl8 read/write page 1, address: 3a h reset value: 00 h 76543210 nlvsl7 nlvsl6 nlvsl5 nlvsl4 nlvsl3 nlvsl2 nlvsl1 nlvsl0 read/write page 2, address: 1d h reset value: 08 h 15 14 13 12 11 10 9 8 agcgn15 agcgn14 agcgn13 agcgn12 agcgn11 agcgn10 agcgn9 agcgn8 read/write page 2, address: 1c h reset value: 00 h 76543210 agcgn7 agcgn6 agcgn5 agcgn4 agcgn3 agcgn2 agcgn1 agcgn0
zl38002 data sheet 38 zarlink semiconductor inc. register table 29 - noise threshold for noise reduction register (nrth) register table 30 - noise reduction register bit name description 7-0 nrth7-0 this register scales the noise threshold for noise reduction. bit name description 7-0 beta7-0 this register sets the minimum noise reduction for each sample. read/write page 3, address: 15 h reset value: 20 h 76543210 nrth7 nrth6 nrth5 nrth4 nrth3 nrth2 nrth1 nrth0 read/write page 3, address: 17 h reset value: 20 h 76543210 beta7 beta6 beta5 beta4 beta3 beta2 beta1 beta0
zl38002 data sheet 39 zarlink semiconductor inc. 7.0 electrical characteristics * exceeding these values may cause permanent damage. functional operation under these conditions is not implied. ? typical figures are at 25 c and are for design aid only: not guaranteed and not subject to production testing. *dc electrical characteristics are over recommended temperature and supply voltage. absolute maximum ratings* parameter symbol min. max. units 1 supply voltage v dd -v ss -0.5 5.0 v 2 input voltage v i v ss -0.3 5.5 v 3 output voltage swing v o v ss -0.3 5.5 v 4 continuous current on any digital pin i i/o 20 ma 5 storage temperature t st -65 150 c 6 package power dissipation p d 90 (typ) mw recommended operating conditions - voltages are with respect to ground (v ss ) unless otherwise stated. characteristics sym. min. typ. max. units test conditions 1 supply voltage v dd 2.7 3.3 3.6 v 2 input high voltage 1.4 v dd v 3 input low voltage v ss 0.4 v 4 operating temperature t a -40 +85 c echo return limits characteristics min. typ. max. units test conditions 1 acoustic echo return 6 db measured from rout -> sin (using the customer gain control registers) dc electrical characteristics* - voltages are with respect to ground (v ss ) unless otherwise stated. characteristics sym. min. typ. ? max. units conditions/notes 1 standby supply current: i cc 370 a reset = 0 operating supply current: i dd 20 ma reset = 1, clocks active 2 input high voltage v ih 0.7v dd v 3 input low voltage v il 0.3v dd v 4 input leakage current i ih /i il 0.1 10 av in =v ss to v dd 5 high level output voltage v oh 0.8 v dd vi oh =2.5 ma 6 low level output voltage v ol 0.4v v i ol =5.0 ma 7 high impedance leakage i oz 110 av in =v ss to v dd 8 output capacitance c o 10 pf 9 input capacitance c i 8pf
zl38002 data sheet 40 zarlink semiconductor inc. ? timing is over recommended temperature and power supply voltages. ac electrical characteristics ? - serial data interfaces - voltages are with respect to ground (v ss ) unless otherwise stated. characteristics sym. min. typ. max. units test notes 1 mclk frequency f clk 19.15 20.5 mhz 2bclk/c4i clock high t bch, t c4h 90 ns 3bclk/c4i clock low t bll, t c4l 90 ns 4bclk/c4i period t bcp 240 7900 ns 5 ssi enable strobe to data delay (first bit) t sd 80 ns c l = 150 pf 6 ssi data output delay (excluding first bit) t dd 80 ns c l = 150 pf 7 ssi output active to high impedance t ahz 80 ns c l = 150 pf 8 ssi enable strobe signal setup t sss 10 t bcp -15 ns 9 ssi enable strobe signal hold t ssh 15 t bcp -10 ns 10 ssi data input setup t dis 10 ns 11 ssi data input hold t dih 15 ns 12 st-bus/gci f0i setup t f0is 20 150 ns 13 st-bus/gci f0i hold t f0ih 20 150 ns 14 st-bus/gci data output delay t dsd 80 ns c l = 150 pf 15 st-bus/gci output active to high impedance t ashz 80 ns c l = 150 pf 16 st-bus/gci data input hold time t dsh 20 ns 17 st-bus/gci data input setup time t dss 20 ns
zl38002 data sheet 41 zarlink semiconductor inc. ? timing is over recommended temperature range and recommended power supply voltages. figure 11 - master clock - mclk ac electrical characteristics ? - microport timing characteristics sym. min. typ. max. units test notes 1 input data setup t ids 30 ns 2 input data hold t idh 30 ns 3 output data delay t odd 100 ns c l = 150 pf 4 serial clock period t scp 500 ns 5 sclk pulse width high t sch 250 ns 6 sclk pulse width low t scl 250 ns 7 cs setup-intel t cssi 200 ns 8cs setup-motorola t cssm 100 ns 9cs hold t csh 100 ns 10 cs to output high impedance t ohz 100 ns c l = 150 pf characteristic symbol cmos level units cmos reference level v ct 0.5*v dd v input high level v h 0.9*v dd v input low level v l 0.1*v dd v rise/fall high measurement point v hm 0.7*v dd v rise/fall low measurement point v lm 0.3*v dd v table 7 - reference level definition for timing measurements mclk (i) v h v l v ct t=1/f clk notes: o. cmos output i. cmos input (5 v tolerant) (see table 8 for symbol definitions)
zl38002 data sheet 42 zarlink semiconductor inc. figure 12 - gci data port timing figure 13 - st-bus data port timing sout/rout (o) v ct c4i (i) v h v l v ct f0i (i) v h v l v ct rin/sin (i) v h v l v ct t f0is t f0ih t dss t dsh t dsd t ashz t c4h t c4l bit 6 bit 7 bit 6 start of frame input sampled bit 7 sout/rout (o) v ct c4i (i) v h v l v ct f0i (i) v h v l v ct rin/sin (i) v h v l v ct t f0is t f0ih t dss t dsh t dsd t ashz t c4h t c4l bit 7 bit 6 bit 6 start of frame input sampled bit 7
zl38002 data sheet 43 zarlink semiconductor inc. figure 14 - ssi data port timing figure 15 - intel serial microport timing sout/rout (o) v ct bclk (i) v h v l v ct ena1 (i) v h v l v ct rin/sin (1) v h v l v ct t sd t sss t dd t ahz t ssh t dis t dih t bcp t bch t bcl bit 7 bit 6 or ena2 (i) input sampled start of frame bit 5 bit 7 bit 6 bit 5 notes: o. cmos output i. cmos input (5 v tolerant) (see table 8 for symbol definitions) data1 (i,o) v ct sclk (i) v h v l v ct cs ( i) v h v l v ct t ids t idh t odd t ohz t cssi t csh t scl t sch t scp data input data output notes: o. cmos output i. cmos input (5 v tolerant) (see table 8 for symbol definitions)
zl38002 data sheet 44 zarlink semiconductor inc. figure 16 - motorola serial microport timing data2 (i) v h v l v ct sclk (i) v h v l v ct cs (i) v h v l v ct data1 (o) v ct t ids t idh t odd t cssm t csh t ohz t sch t scl t scp (input) (output) notes: o. cmos output i. cmos input (5 v tolerant) (see table 8 for symbol definitions)

acn date apprd. c zarlink semiconductor 2003 all rights reserved. issue previous package codes package code
www.zarlink.com information relating to products and services furnished herein by zarlink semiconductor inc. or its subsidiaries (collectively ?zarlink?) is believed to be reliable. however, zarlink assumes no liability for errors that may appear in this publication, or for liability otherwise arising from t he application or use of any such information, product or service or for any infringement of patents or other intellectual property rights owned by third parties which may result from such application or use. neither the supply of such information or purchase of product or service conveys any license, either express or implied, u nder patents or other intellectual property rights owned by zarlink or licensed from third parties by zarlink, whatsoever. purchasers of products are also hereby notified that the use of product in certain ways or in combination with zarlink, or non-zarlink furnished goods or services may infringe patents or other intellect ual property rights owned by zarlink. this publication is issued to provide information only and (unless agreed by zarlink in writing) may not be used, applied or re produced for any purpose nor form part of any order or contract nor to be regarded as a representation relating to the products or services concerned. the products, t heir specifications, services and other information appearing in this publication are subject to change by zarlink without notice. no warranty or guarantee express or implied is made regarding the capability, performance or suitability of any product or service. information concerning possible methods of use is provided as a guide only and does not constitute any guarantee that such methods of use will be satisfactory in a specific piece of equipment. it is the user?s responsibility t o fully determine the performance and suitability of any equipment using such information and to ensure that any publication or data used is up to date and has not b een superseded. manufacturing does not necessarily include testing of all functions or parameters. these products are not suitable for use in any medical products whose failure to perform may result in significant injury or death to the user. all products and materials are sold and services provided subject to zarlink?s conditi ons of sale which are available on request. purchase of zarlink?s i 2 c components conveys a licence under the philips i 2 c patent rights to use these components in and i 2 c system, provided that the system conforms to the i 2 c standard specification as defined by philips. zarlink, zl and the zarlink semiconductor logo are trademarks of zarlink semiconductor inc. copyright zarlink semiconductor inc. all rights reserved. technical documentation - not for resale for more information about all zarlink products visit our web site at


▲Up To Search▲   

 
Price & Availability of ZL38002QDG1

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X